﻿using System.IO;
using YooAsset.Editor;

[DisplayName("收集材质")]
public class MaterialFilter : IFilterRule
{
    public bool IsCollectAsset(FilterRuleData data)
    {
        return Path.GetExtension(data.AssetPath) == ".mat";
    }
}

[DisplayName("收集贴图")]
public class TextureFilter : IFilterRule
{
    public bool IsCollectAsset(FilterRuleData data)
    {
        return Path.GetExtension(data.AssetPath) == ".png";
    }
}

[DisplayName("收集音频")]
public class AudioFilter : IFilterRule
{
    public bool IsCollectAsset(FilterRuleData data)
    {
        return Path.GetExtension(data.AssetPath) == ".wav";
    }
}

[DisplayName("收集Json")]
public class JsonFilter : IFilterRule
{
    public bool IsCollectAsset(FilterRuleData data)
    {
        return Path.GetExtension(data.AssetPath) == ".json";
    }
}
